//
//  YTHomeViewModel.h
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/13.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YTHomeViewModel : NSObject

@property(nonatomic ,strong)NSArray<YTHomeCate *> *cateList; // 分类数组

@property(nonatomic ,strong)YTHomeBanner *banner; // 广告

@property(nonatomic ,strong)NSArray<YTNewFlashModel *> *flashList; // 快讯列表

@property(nonatomic ,strong)YTHomeMainModel *model;

@property(nonatomic ,strong)NSMutableDictionary *dict;

@property(nonatomic ,strong)NSArray *hotSearchList; // 热搜列表



@property(nonatomic ,strong)NSArray *list;
// 加载首页分类
- (void)loadCateListWithCompletion:(void(^)(BOOL isSucc, NSString *error))completion;

// 加载banner
- (void)loadBannerWithCompletion:(void(^)(BOOL isSucc, NSString *error))completion;

// 加载
- (void)loadNewFlashCompletion:(void(^)(BOOL isSucc, NSString *error))completion;
// 加载首页列表
- (void)loadHomeListWithTerm_id:(NSString *)term_id pullup:(BOOL)pullup
                     completion:(void(^)(BOOL isSucc, NSString *error))completion;
@end
